// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** addTableInfo POST /api/table_info/add */
export async function addTableInfoUsingPost(
  body: API.TableInfoAddRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseLong_>('/api/table_info/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** deleteTableInfo POST /api/table_info/delete */
export async function deleteTableInfoUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/table_info/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** generateCreateSql POST /api/table_info/generate/sql */
export async function generateCreateSqlUsingPost2(body: number, options?: { [key: string]: any }) {
  return request<API.BaseResponseString_>('/api/table_info/generate/sql', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** getTableInfoById GET /api/table_info/get */
export async function getTableInfoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getTableInfoByIdUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseTableInfo_>('/api/table_info/get', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listTableInfo GET /api/table_info/list */
export async function listTableInfoUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.listTableInfoUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseListTableInfo_>('/api/table_info/list', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listTableInfoByPage GET /api/table_info/list/page */
export async function listTableInfoByPageUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.listTableInfoByPageUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageTableInfo_>('/api/table_info/list/page', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listMyAddTableInfoByPage GET /api/table_info/my/add/list/page */
export async function listMyAddTableInfoByPageUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.listMyAddTableInfoByPageUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageTableInfo_>('/api/table_info/my/add/list/page', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listMyTableInfo GET /api/table_info/my/list */
export async function listMyTableInfoUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.listMyTableInfoUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseListTableInfo_>('/api/table_info/my/list', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listMyTableInfoByPage GET /api/table_info/my/list/page */
export async function listMyTableInfoByPageUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.listMyTableInfoByPageUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageTableInfo_>('/api/table_info/my/list/page', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** updateTableInfo POST /api/table_info/update */
export async function updateTableInfoUsingPost(
  body: API.TableInfoUpdateRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/table_info/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
